﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;
using Model;
namespace BLL
{
    public class MarkBLL
    {
        MarkDAL dal = new MarkDAL();
        /// <summary>
        /// 发标预告显示功能
        /// </summary>
        /// <returns></returns>
        public List<Mark> Mark_Show()
        {
            return dal.Mark_Show();

        }
        /// <summary>
        /// 发标预告的添加
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public int Mark_Insert(Mark m)
        {
            return dal.Mark_Insert(m);
        }
        /// <summary>
        /// 发标预告的删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int Mark_Delete(int id)
        {
            return dal.Mark_Delete(id);
        }


        /// <summary>
        /// 发标预告的显示或修改第一步
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Mark Mark_details(int id)
        {
            return dal.Mark_details(id);
        }
        /// <summary>
        /// 发标预告的修改
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int Mark_Edit(Mark m)
        {
            return dal.Mark_Edit(m);
        }
        /// <summary>
        /// 发标预告的搜索
        /// </summary>
        /// <param name="RoleId"></param>
        /// <returns></returns>
        public List<Mark> Mark_Search(string MarkTitle)
        {
            return dal.Mark_Search(MarkTitle);
        }

    }
}
